#ifndef __SINGLEMODEL_H__
#define __SINGLEMODEL_H__

#include "PlayModelBase.h"

namespace SPlayer
{
    ref class SingleModel : public PlayModelBase
    {
    public:
        virtual PlayModelBase::NextMusicInfo ^next()
        = PlayModelBase::next
        {
            if (_currentList == nullptr || _currentMusicInfo == nullptr)
                return nullptr;
            return gcnew PlayModelBase::NextMusicInfo(_currentList, _currentMusicInfo);
        }
        virtual void onMusicPlay(System::String ^currentList, Music::MusicInfo ^_currentMusicInfo)
        = PlayModelBase::onMusicPlay
        {
            this->_currentList = currentList;
            this->_currentMusicInfo = _currentMusicInfo;
        };
    private:
        System::String ^_currentList = nullptr;
        Music::MusicInfo ^_currentMusicInfo = nullptr;
    };
}

#endif // __SINGLEMODEL_H__